#!/usr/bin/env python
import pika

connection = pika.BlockingConnection(pika.ConnectionParameters(
        host='localhost'))
channel = connection.channel()

channel.queue_declare(queue='hello')

message = "http://htp.ap.familydoctor.com.cn/Vote/SetVote?charset=gb2312&token=B26D842D8D474CD5851192003C351C9A&vid=6153&ObjectId=747084&type=2&isBool=1&votype=0&parameter&callback=jQuery110206854440603774935_1426572084156&_=1426572084159"

channel.basic_publish(exchange='',
                      routing_key='hello',
                      body=message)
print " [x] Sent message ok'"
connection.close()

